import axios from '../../network/axios'

export const get_store_no_data_api = () => {
  return axios({
    method: 'GET',
    url: '/customer/list'
  })
}
// 获取年度计划 （月目标根据店铺年目标点击显示）点击查询的时候
export const query_year_plan_data_api = (params) => {
  return axios({
    method: 'GET',
    url: '/vip-shop-plan/list',
    params
  })
}

//保存年度总目标 点击保存的时候
export const keep_year_target_data_api = (data) => {
  return axios({
    method: 'POST',
    url: '/vip-shop-plan/inset',
    data
  })
}
//修改总目标
export const edit_year_target_data_api = (data) => {
  return axios({
    method: 'POST',
    url: '/vip-shop-plan/updateTotalTarget',
    data
  })
}
//修改店铺年目标
export const edit_store_year_target_data_api = (data) => {
  return axios({
    method: 'POST',
    url: '/vip-shop-plan/updateYearTarget',
    data
  })
}
//修改店铺月目标
export const edit_store_month_target_data_api = (data) => {
  return axios({
    method: 'POST',
    url: '/vip-shop-plan/updateMonthTarget',
    data
  })
}
